import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);

const store = new Vuex.Store({
	state: {
		liked: 134,
		ylike: 112,
		yWatch: 15,
		like: 1500,
	},
	getter: {
		liked: liked => state.liked,
		ylike: ylike => state.ylike,
		yWatch: yWatch => state.yWatch,
		like: like => state.like,
	},
	mutations: {
		upliked(state, liked) {
			state.liked = liked
		},
		changeylike(state, ylike) {
			state.ylike = ylike
		},
		changeyWatch(state, yWatch) {
			state.yWatch = yWatch
		},
		changelike(state, like) {
			state.like = like
		}
	}
});

export default store;